﻿using System;
using ExFlash.Records;

namespace ExFlash.Tags
{
    public class StartSound2Tag : Tag
    {
        public StringRecord SoundClassName
        {
            get;
            private set;
        }

        public SoundInfo SoundInfo
        {
            get;
            private set;
        }

        public StartSound2Tag(int len, int offset)
            : base(TagCodes.StartSound2, len, offset)
        {

        }
        public override void SwfDeserialize(BinaryBitReader reader)
        {
            // This tag is supported in flash 9 and above.
            SoundClassName = new StringRecord(9);
            SoundClassName.SwfDeserialize(reader);

            SoundInfo = new SoundInfo();
            SoundInfo.SwfDeserialize(reader);

        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
